package com.zkh.myframe.database.mapper.tag;

import java.util.ArrayList;
import java.util.List;

/**
 * If标签
 * @author zkh
 */
public class If extends Tag{
	//条件
	private String condition;
	//else if
	private List<If> elifList = new ArrayList<If>();
	//else
	private Tag elseTag;

	public String getCondition() {
		return condition;
	}
	public void setCondition(String condition) {
		this.condition = condition;
	}
	public List<If> getElifList() {
		return elifList;
	}
	public void appendElif(If elif) {
		elifList.add(elif);
	}
	public Tag getElseTag() {
		return elseTag;
	}
	public void setElseTag(Tag elseTag) {
		this.elseTag = elseTag;
	}
}
